I notice that when a module is copied and the name of the copy is then changed that sometimes the module properties are not updated with the new name that is displayed in the GUI.
ModuleProperties mp
ModuleVersion mv
Item selectedItem
string displayedName = ""
string propName = ""
for selectedItem in current Folder do
{
if (type(selectedItem) == "Formal")
{
mv = moduleVersion(module(fullName(selectedItem)))
getProperties (mv, mp)
displayName = name(selectedItem) ""
propName = mp."Name" ""
if (propName != displayName)
{
//print "FullName: " fullName(selectedItem) "\n"
print "Displayed Name: "displayName "\n"
print "Name in Properties: " propName "\n\n"
}
}
}
Tony_Goodman - Wed Sep 19 10:15:06 EDT 2012 |
Re: Module displayed name different from module properties
Where have you been?
ModuleProperties mp
ModuleVersion mv
Item selectedItem
string displayName = ""
string propName = ""
bool YesOpen = confirm("Open modules?")
for selectedItem in current Folder do
{
if (type(selectedItem) == "Formal")
{
mv = moduleVersion(module(fullName(selectedItem)))
getProperties (mv, mp)
displayName = name(selectedItem) ""
propName = mp."Name"
// propName = name(mp)
if (propName != displayName)
{
//print "FullName: " fullName(selectedItem) "\n"
print "Difference. \tDisplay/Property name ["displayName "]\t[" propName "]\n"
}
else print "Same: \t[" propName "]\n"
if (YesOpen)
{ Module m = read(propName, false, true)
if (null m) print "\tCannot open [" propName "]\n"
}
}
}
|
Re: Module displayed name different from module properties llandale - Wed Sep 19 15:29:48 EDT 2012
Where have you been?
ModuleProperties mp
ModuleVersion mv
Item selectedItem
string displayName = ""
string propName = ""
bool YesOpen = confirm("Open modules?")
for selectedItem in current Folder do
{
if (type(selectedItem) == "Formal")
{
mv = moduleVersion(module(fullName(selectedItem)))
getProperties (mv, mp)
displayName = name(selectedItem) ""
propName = mp."Name"
// propName = name(mp)
if (propName != displayName)
{
//print "FullName: " fullName(selectedItem) "\n"
print "Difference. \tDisplay/Property name ["displayName "]\t[" propName "]\n"
}
else print "Same: \t[" propName "]\n"
if (YesOpen)
{ Module m = read(propName, false, true)
if (null m) print "\tCannot open [" propName "]\n"
}
}
}
So what is likely to happen here, is that somehow the module index file and the module attributes go out of sync regarding the name. I cannot tell however how this is happening. Can you check if name(Module) and name(Item) yield different results? Regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: Module displayed name different from module properties Mathias Mamsch - Thu Sep 20 04:34:04 EDT 2012 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS The module name property remains at the original name after it is renamed. I have raised a bug report with our IT guys who will forward it on to IBM. Tony Goodman, www.smartdxl.com |
Re: Module displayed name different from module properties Tony_Goodman - Fri Sep 21 04:38:29 EDT 2012 PMR tracking ID APAR # PM73846 Tony Goodman, www.smartdxl.com |
Re: Module displayed name different from module properties Tony_Goodman - Thu Oct 04 04:51:48 EDT 2012 Hello Tony, Where can I find further information about this issue? I have the same problem and I'm interested in a fix. Regards Mikka |
Re: Module displayed name different from module properties Tony_Goodman - Thu Oct 04 04:51:48 EDT 2012 Hi Tony and all, Thanks for posting this issue. However, I'm a little confused as to detecting this issue and maybe doing a workaround. I run the script and it highlights a module that has a different display name from the property name. However, when I look at the Module Properties of the module, the Name field has the same name as the displayed name. I looked at the module properties from both the explorer window and from inside the module (File->Module Properties...). Where is this property name listed at and how can I change it, short of generating a script to do it? Thanks, Greg |